<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "index";
$route['404_override'] = 'error/index';
$route['report'] = "index/report";
$route['(:num)'] = "index/index/$1";

$route['account/login'] = "site/login";
$route['account/register'] = "site/register";
$route['account/set_login_key'] = "site/set_login_key";
$route['account/set_reg_key'] = "site/set_reg_key";
$route['account/findpwd'] = "site/findpwd";
$route['account/findpwd_next'] = "site/findpwd_next";
$route['account/findpwd_over'] = "site/findpwd_over";
$route['account/logout'] = "site/logout";
$route['account/third_login'] = "site/third_login";
$route['account/qq_login'] = "site/qq_login";
$route['account/weibo_login'] = "site/weibo_login";
$route['account/weixin_login'] = "site/weixin_login";
$route['account/third_bind'] = "site/third_bind";

$route['add_article'] = "post/add";

$route['action_order'] = "recharge/action_order";
$route['action_award_order'] = "recharge/action_award_order";
$route['recharge_notify'] = "recharge/recharge_notify";
$route['recharge_result'] = "recharge/recharge_result";
$route['do_alipay_recharge'] = "recharge/do_alipay_recharge";
$route['check_pay_order'] = "recharge/check_pay_order";
$route['action_order_continus'] = "recharge/action_order_continus";

$route['award_notify'] = "recharge/award_notify";
$route['award_result'] = "recharge/award_result";

//私信即时聊天相关
$route['chats/(:any)/chat_message.json'] = "chats/chat_message/$1";
$route['chats/(:any)/chat_message'] = "chats/chat_message/$1";
$route['chats/(:any)/send_message'] = "chats/send_message/$1";
$route['chats/(:any)'] = "chats/index/$1";
$route['chat_message'] = "chats/chat_message";

//消息
$route["msg_sys"] = "account/msg_sys";
$route["msg_wenda"] = "account/msg_wenda";
$route["msg_art"] = "account/msg_art";

//文章
$route['p/view/(:num)'] = "detail/view/$1";
$route['p/upub/(:num)'] = "detail/upub/$1";
$route['p/(:num)'] = "detail/index/$1";
$route['p/(:num)/comments/(:num)'] = "detail/index/$1/$2";
$route['p/(:any)-(:num)'] = "index/index/$1/$2";

//问答
$route['wenda/(:num)'] = "wenda/detail/$1";
$route['wenda/(:num)/answer/(:num)'] = "wenda/detail/$1/$2";
$route['wenda/(:num)/answer-(:num)'] = "wenda/detail/$1/$2";//指定答案
$route['wenda/(:num)/answer/(:num)/reply-(:num)'] = "wenda/detail/$1/$2/$3";//指定答案评论
$route['wenda/(:any)-(:any)'] = "wenda/index/$1/$2";
//曝光台
$route['exposure/(:num)'] = "exposure/detail/$1";
$route['exposure/(:num)/answer/(:num)'] = "exposure/detail/$1/$2";
$route['exposure/(:num)/answer-(:num)'] = "exposure/detail/$1/$2";//指定答案
$route['exposure/(:num)/answer/(:num)/reply-(:num)'] = "exposure/detail/$1/$2/$3";//指定答案评论
$route['exposure/(:any)-(:any)'] = "exposure/index/$1/$2";
$route['information/(:num)'] = "exposure/information_detail/$1";
//夺宝专区
$route['duoing_list'] = "lottery/duoing_list";
$route['lottery/(:num)'] = "lottery/detail/$1";
$route['lottery_finish/(:num)'] = "lottery/finish/$1";
$route['lottery_finish/list'] = "lottery/finish_list";
$route['lottery_shop_set'] = "lottery/lottery_shop_set";
$route['lottery_shop_get'] = "lottery/lottery_shop_get";
$route['lottery_shop_json/(:any)'] = "lottery/lottery_shop_json";
$route['cart/cartlist/(:any)'] = "lottery/cartlist";
$route['cart/cartlist'] = "lottery/cartlist";
$route['cart/mkorder'] = "lottery/mkorder";
$route['cart/paysubmit'] = "lottery/paysubmit";
$route['cart/paysuccess'] = "lottery/paysuccess";
$route['lottery_alipay_return'] = "lottery/lottery_alipay_return";

//他人个人中心
$route['u/(:num)'] = "space/index/$1";
$route['u/(:num)/fans'] = "space/fans/$1";
$route['u/(:num)/follows'] = "space/follows/$1";
$route['u/(:num)/arts'] = "space/arts/$1";
$route['u/(:num)/question'] = "space/question/$1";
$route['u/(:num)/answer'] = "space/answer/$1";
$route['u/(:num)/follow_question'] = "space/follow_question/$1";
$route['u/(:num)/comment'] = "space/comment/$1";

//单页
$route['tempage/(:any)'] = "tempage/detail/$1";
//任务
$route['task/(:num)'] = "task/detail/$1";
$route['task/d-(:num)'] = "task/detail1/$1";

//视频专区
$route['video/(:any)/comments/(:num)'] = "video/detail/$1/$2";
$route['video/(:any)'] = "video/detail/$1";
$route['action_award_video_order'] = "recharge/action_award_video_order";
$route['award_v_notify'] = "recharge/award_video_notify";
$route['award_v_result'] = "recharge/award_video_result";
/* End of file routes.php */
/* Location: ./application/config/routes.php */
